﻿@model ICDA.Web.Models.UserModel
@section cssJavascript
{
    <script src="@Url.Content("~/Scripts/jquery.tipTip.js")" type="text/javascript"></script>
}
@{
    ViewBag.Title = "EditMyInfo";

}
<script type="text/javascript">
    $(document).ready(function () {
        $(".someClass").tipTip({ maxWidth: "auto", edgeOffset: 10 });
        $("#DOB").datepicker({ dateFormat: 'dd/mm/yy' });
        $("#CSCJoiningDate").datepicker({ dateFormat: 'dd/mm/yy' });
        $("#ProjectJoiningDate").datepicker({ dateFormat: 'dd/mm/yy' });
    });
</script>

<div class="tabscontainer">
    <div class="tabs">
        <div class="tab first" id="tab_menu_1">
            <div class="link">@Html.ActionLink("My Profile", "MyAccount", "Account")</div>
        </div>
        <div class="tab" id="tab_menu_2">
            <div class="link">@Html.ActionLink("Change Password", "ChangePassword", "Account")</div>
        </div>
        <div class="tab selected last" id="tab_menu_3">
            <div class="link">@Html.ActionLink("Edit My Info", "EditMyInfo", "Account")</div>
            <div class="arrow">
            </div>
        </div>
    </div>
    @using (Html.BeginForm())
    {
        @Html.ValidationSummary(true, "Account creation was unsuccessful. Please correct the errors and try again.")
  
        <div class="curvedContainer">
            <div class="tabcontent" id="tab_content_3" style="display: block">
                <div class="formcontainer">
                    <div class="formtr">
                        <div class="formlabes">
                            @Html.LabelFor(m => m.Name)
                        </div>
                        <div class="formfield">
                            @Html.TextBoxFor(m => m.Name)
                        </div>

                            <div class="messageRow">
                                @Html.ValidationMessageFor(m => m.Name)
                            </div>
                    </div>

                    <div class="formtr">
                        <div class="formlabes">
                            @Html.LabelFor(m => m.EmailID)
                        </div>
                        <div class="formfield">
                            @Html.TextBoxFor(m => m.EmailID)
                        </div>

                            <div class="messageRow">
                                @Html.ValidationMessageFor(m => m.EmailID)
                            </div>
                    </div>

                    <div class="formtr">
                        <div class="formlabes">
                            @Html.LabelFor(m => m.SkillSets)
                        </div>
                        <div class="formfield">
                            @Html.TextBoxFor(m => m.SkillSets)
                        </div>

                            <div class="messageRow">
                                @Html.ValidationMessageFor(m => m.SkillSets)
                            </div>
                    </div>

                    <div class="formtr">
                        <div class="formlabes">
                            @Html.LabelFor(m => m.TeamName)
                        </div>
                        <div class="formfield">
                            @Html.TextBoxFor(m => m.TeamName)
                        </div>

                            <div class="messageRow">
                                @Html.ValidationMessageFor(m => m.TeamName)
                            </div>
                    </div>
                    <div class="formtr">
                        <div class="formlabes">
                            @Html.LabelFor(m => m.DOB) :
                        </div>
                        <div class="formfield">
                            @Html.TextBoxFor(Model => Model.DOB)
                        </div>

                            <div class="messageRow">
                                @Html.ValidationMessageFor(Model => Model.DOB)
                            </div>
                    </div>
                    <div class="formtr">
                        <div class="formlabes">
                            @Html.LabelFor(m => m.CSCJoiningDate) :
                        </div>
                        <div class="formfield">
                            @Html.TextBoxFor(Model => Model.CSCJoiningDate)
                        </div>

                            <div class="messageRow">
                                @Html.ValidationMessageFor(Model => Model.CSCJoiningDate)
                            </div>
                    </div>
                    <div class="formtr">
                        <div class="formlabes">
                            @Html.LabelFor(m => m.ProjectJoiningDate) :
                        </div>
                        <div class="formfield">
                            @Html.TextBoxFor(Model => Model.ProjectJoiningDate)
                        </div>

                            <div class="messageRow">
                                @Html.ValidationMessageFor(Model => Model.ProjectJoiningDate)
                            </div>
                    </div>
                    <div class="formtr">
                        <div class="formlabes">
                            @Html.LabelFor(m => m.Location) :
                        </div>
                        <div class="formfield">
                            @Html.TextBoxFor(Model => Model.Location)
                        </div>

                            <div class="messageRow">
                                @Html.ValidationMessageFor(Model => Model.Location)
                            </div>
                    </div>
                    <div class="formtr">
                        <div class="formlabes">
                            @Html.LabelFor(m => m.ManagerName) :
                        </div>
                        <div class="formfield">
                            @Html.TextBoxFor(Model => Model.ManagerName)
                        </div>

                            <div class="messageRow">
                                @Html.ValidationMessageFor(Model => Model.ManagerName)
                            </div>
                    </div>
                    <div class="formtr">
                        <div class="formlabes">
                            @Html.LabelFor(m => m.CUGNumber) :
                        </div>
                        <div class="formfield">
                            @Html.TextBoxFor(Model => Model.CUGNumber)
                        </div>

                            <div class="messageRow">
                                @Html.ValidationMessageFor(Model => Model.CUGNumber)
                            </div>
                    </div>
                    <div style="height: 6px; float: left; width: 100%;">
                    </div>

                        <div class="formEditButton">
                            <button name="btnUpdate" type="submit" class="button orange medium" value="Update">
                                Update</button>
                        </div>
                </div>
            </div>
        </div>
    }
</div>
